import { createStore, applyMiddleware } from 'redux'
import RootReducer from './reducers'
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'

const middleware = composeWithDevTools(applyMiddleware(thunk))

const store = createStore(RootReducer, middleware)
export default store
